package com.unknowpupil.design.decorator;

/**
 * @Description: <p>
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 10:15
 * @Classname: Client
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
       //真实角色
        Car car = new Car();
        car.move();
        System.out.println("增加新的飞行功能=========");
        FlySuperCar flySuperCar = new FlySuperCar(car);
        flySuperCar.move();
        System.out.println("增加新的水里游功能=========");
        WaterSuperCar waterSuperCar = new WaterSuperCar(flySuperCar);
        waterSuperCar.move();
    }
}
